<html>
<body>
<h2>How to use web-app?</h2>
<p> There is several scenarios how to use this web-app</p>

<h3>1. You want to publish some geometry features by SQL</h3>
<p>1.1. Send HTTP GET request with query parameter like: publisher/DKMLServlet?query=SELECT%20st_asKML(the_geom),%20*%20FROM%20positions%20WHERE%20speed%3E60;</p>
<p>1.2. Open returned KML in GoogleEarth</p>
<p>1.3. After zoom are data send to window</p>

<h3>2. You want to publish some hierarchical geometry features by SQL and you know the name of attribute that was used in clusterisation</h3>
<p>2.1. Send HTTP GET request with parameters query (SQL command), data_table (name of table with geometries) and clustered_att (name of attribute that was used in clusterisation) like: publisher/DKMLServlet?data_table=positions&clustered_att=the_geom&query=SELECT%20st_asKML(the_geom),%20*%20FROM%20positions%20WHERE%20speed%3E50;</p>
<p>2.2. open returned KML in GoogleEarth</p>
<p>2.3. after zoom are data send to window</p>

<h3>Alternatively you can open the same request in Google maps</h3>

<h3>You can use this <a href="createKML.jsp">form</a> to insert SQL query.</h3>
</body>
</html>
